#include<stdio.h>
// Created by baoch on 2024/10/26.
int main()
{
    int n;//第n天
    scanf("%d",&n);
    int num = 1;//第n天剩1个
    for(n;n >1;n--)
    {
        num = (num + 1) * 2;

    }
    printf("%d\n",num);
}
